package com.meihuayishu.backend.dto;

import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "收藏列表响应")
public class FavoriteListResponse {
    
    @Schema(description = "分页信息")
    private DivinationHistoryResponse.PaginationInfo pagination;
    
    @Schema(description = "收藏记录列表")
    private List<FavoriteRecord> records;
    
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @Schema(description = "收藏记录")
    public static class FavoriteRecord {
        @Schema(description = "记录ID", example = "rec_1704097800789")
        private String recordId;
        
        @Schema(description = "占卜问题", example = "今年的事业发展怎么样？")
        private String question;
        
        @Schema(description = "卦象信息")
        private HexagramInfo hexagram;
        
        @Schema(description = "创建时间", example = "2024-01-01T11:10:00.000Z")
        private LocalDateTime createdAt;
        
        @Schema(description = "收藏时间", example = "2024-01-01T11:15:00.000Z")
        private LocalDateTime favoritedAt;
    }
}